package com.yn.xr.common.exception;


import com.yn.xr.common.constants.ExceptionErrorCodeDef;
import com.yn.xr.common.exception.base.BaseException;
import com.yn.xr.common.properties.PropertyConfig;
import com.yn.xr.common.util.StringUtils;
/**
 * 用户登录账号密码错误抛出错误
 */
public class UserLoginException extends BaseException {
	
	private static final long serialVersionUID = 4327472252195547590L;
	
	public UserLoginException(String errorMsg) {
		super(ExceptionErrorCodeDef.USER_LOGIN_ERROR, StringUtils.isEmpty(errorMsg)?PropertyConfig.getValueBykey(String.valueOf(ExceptionErrorCodeDef.USER_LOGIN_ERROR)):errorMsg);
	}
	
	public UserLoginException() {
		super(ExceptionErrorCodeDef.USER_LOGIN_ERROR, PropertyConfig.getValueBykey(String.valueOf(ExceptionErrorCodeDef.USER_LOGIN_ERROR)));
	}
	
}
